package com.kuang.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class RegisterForm {

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "确认密码")
    private String repassword;

    @ApiModelProperty(value = "邀请码")
    private String code;

    public static void main(String[] args) {
        List<String[]> firstList = new ArrayList<>();
        firstList.add(new String[]{"7","哈哈哈"});
        firstList.add(new String[]{"8","哈哈哈2"});
        List<String> secondList = Arrays.asList("1","2", "3", "4","5");

        List<String[]> resultList = new ArrayList<>();
        for (String[] item : firstList) {
            if (!secondList.contains(item[0])) {
                resultList.add(item);
            }
        }
        for (String[] strings : resultList) {

            System.out.println(strings[0]);
            System.out.println(strings[1]);
        }
    }
}
